const users = [
  { id: '0', name: '会员xxx', phone: '15380924588', status: 1, level: 2, technically: 100, createTime: '2021-01-01 00:00:00' },
  { id: '1', name: '会员xxx', phone: '15380924588', status: 1, level: 2, technically: 100, createTime: '2021-01-01 00:00:00' },
  { id: '2', name: '会员xxx', phone: '15380924588', status: 1, level: 2, technically: 100, createTime: '2021-01-01 00:00:00' },
  { id: '3', name: '会员xxx', phone: '15380924588', status: 1, level: 2, technically: 100, createTime: '2021-01-01 00:00:00' },
  { id: '4', name: '会员xxx', phone: '15380924588', status: 2, level: 2, technically: 100, createTime: '2021-01-01 00:00:00' },
];

export default {
  'GET /pc/user/page': (req: any, res: any) => {
    res.json({
      success: true,
      data: {
        current: 1,
        total: 10,
        pageSize: 10,
        list: users
      },
      errorCode: 0,
    });
  },
  'GET /pc/user/Info': (req: any, res: any) => {
    res.json({
      success: true,
      errorCode: 0,
      data: users[0],
    });
  },
  'POST /pc/user/editState': (req: any, res: any) => {
    res.json({
      success: true,
      errorCode: 0,
      data: true,
    });
  },
  'POST /pc/user/editTechnically': (req: any, res: any) => {
    res.json({
      success: true,
      errorCode: 0,
      data: true,
    });
  },
  'POST /pc/user/add': (req: any, res: any) => {
    res.json({
      success: true,
      errorCode: 0,
      data: true,
    });
  },
  'POST /pc/user/edit': (req: any, res: any) => {
    res.json({
      success: true,
      errorCode: 0,
      data: true,
    });
  },
};
